package com.alexsun.loginview

import android.annotation.SuppressLint
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.TextView

class HelloActivity : AppCompatActivity() {
    @SuppressLint("SetTextI18n")
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_hello)

        val username = intent.extras?.getString("username")
        val helloText: TextView = findViewById(R.id.hello_text)
        helloText.text = "欢迎：$username"
    }
}